-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support generate & format test files #112
Conversation
Signed-off-by: xxchan <[email protected]>
Signed-off-by: xxchan <[email protected]>
Signed-off-by: xxchan <[email protected]>
Signed-off-by: xxchan <[email protected]>
Signed-off-by: xxchan <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🤯
// FIXME: | ||
// _ => Err(ParseErrorKind::InvalidType(c)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't decided what's the final way yet. 🤪 How do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's discuss how to handle type-string here #36
sqllogictest/src/runner.rs
Outdated
if let Some(hook) = &mut self.hook { | ||
hook.on_stmt_complete(&sql).await; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hook should be called after comparing the result.
Nevertheless, the hook feature can be removed now as we no longer use it. 🤪
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hook should be called after comparing the result.
Why? Do you mean only run hooks if query/statement succeed?
the hook feature can be removed now as we no longer use it.
I'm not sure but it maybe useful sometimes #88 🤪
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only run hooks if query/statement succeed?
Previous implementation is indeed on_query_succeed_and_pass_test
🤪. Maybe we will also need others like on_query_succeed_and_fail_test
... It's a little bit tricker than I thought.
Since no one is using it now, let's secretly remove it; Redesign and add back in future if needed. 😄
Signed-off-by: xxchan <[email protected]>
Signed-off-by: xxchan <[email protected]>
--override
, and--format
Record
and parserInclude
record when linking its contentHalt
Begin/EndInclude
toInjected
Hook
sample run: risingwavelabs/risingwave#6776
close #43
close #90